|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcontrol.IteratorCommunityStates
public class IteratorCommunityStates
This Class is an iterator on community states and allows to build Cartesian product on fly
| Field Summary | |
|---|---|
private boolean |
hasNext
|
private java.util.Iterator<State>[] |
next
|
private State[] |
presentConfiguration
|
private AvailableServices |
services
|
| Constructor Summary | |
|---|---|
IteratorCommunityStates(AvailableServices services)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
says if the iterations of Cartesian product are terminated |
CState |
next()
gets the present configuration an creat the next one |
void |
remove()
remove operation isn't allows for thhis structures. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private State[] presentConfiguration
private java.util.Iterator<State>[] next
private AvailableServices services
private boolean hasNext
| Constructor Detail |
|---|
public IteratorCommunityStates(AvailableServices services)
| Method Detail |
|---|
public CState next()
next in interface java.util.Iterator<CState>public boolean hasNext()
hasNext in interface java.util.Iterator<CState>public void remove()
remove in interface java.util.Iterator<CState>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||